Converts any numeric expression to a string expression.
数値表式を、文字列に変換します。
CStr (Expression)
CStr (Expression)
String
文字列
Expression: Any valid string or numeric expression that you want to convert.
Expression: 変換させる文字列および数値表式。
|
Boolean :
|
String that evaluates to either True or False.
|
|
Date :
|
String that contains the date and time.
|
|
Null :
|
Run-time error.
|
|
Empty :
|
String without any characters.
|
|
Any :
|
Corresponding number as string.
|
Zeros at the end of a floating-point number are not included in the returned string.
浮動小数点の末尾にくるゼロは、返される文字列には含まれません。
Sub ExampleCSTR
Sub ExampleCSTR
Dim sVar As String
Dim sVar As String
Msgbox CDbl(1234.5678)
Msgbox CDbl(1234.5678)
Msgbox CInt(1234.5678)
Msgbox CInt(1234.5678)
Msgbox CLng(1234.5678)
Msgbox CLng(1234.5678)
Msgbox CSng(1234.5678)
Msgbox CSng(1234.5678)
sVar = CStr(1234.5678)
sVar = CStr(1234.5678)
MsgBox sVar
MsgBox sVar
end sub
end sub